package com.tiancikeji.zaoke.app.biz;

import java.util.List;

import com.tiancikeji.zaoke.app.exception.PayBalanceException;
import com.tiancikeji.zaoke.app.exception.PayURLException;
import com.tiancikeji.zaoke.app.model.food.Food;
import com.tiancikeji.zaoke.app.model.food.FoodPrice;
import com.tiancikeji.zaoke.app.model.order.Order;
import com.tiancikeji.zaoke.app.model.order.PayMode;
import com.tiancikeji.zaoke.app.model.user.User;
import com.tiancikeji.zaoke.app.model.zone.Zone;

public interface OrderBiz {

	public List<PayMode> getPayMode(String os);

	public Order getOrderById(long orderid, long userid);

	public boolean cancelOrder(Order order);

	public List<Order> getActiveOrdersByUserId(long userId);

	public Order createOrder(Food food1, Food food2, FoodPrice price, PayMode mode, Zone zone, User user, String system) throws PayURLException, PayBalanceException;

	public Order recharge(double money, PayMode mode, User user, String system) throws PayURLException;

}
